|
Find By Content
|
|
Provides system-wide search facilities for
finding related files based on their content.
|
- Find By Content's overall performance has been
improved for both indexing and searching.
- A new API has been introduced allowing for the
immediate indexing of new or altered files on demand. The
new routine is declared as shown in Listing 3.
OSErr FBCIndexItems(
FSSpecArrayPtr theItems,
UInt32 itemCount);
theItems is a pointer to an array of
file specification records referring to the files to
be indexed.
itemCount is the number of items in
the array of file specification records.
|
Listing 3. FBCIndexItems
declaration. |
FBCIndexItems indexes (or
re-indexes) the files referred to in the array of file
specification records passed as a pointer in the first
parameter. If the volume containing a file already has an
index, the document is added or re-indexed; and, if the
volume does not contain an index, a new index is created.
Normally you will call FBCIndexItems after
saving a file (or updating a file) on a volume containing
an index. This will allow users to keep their indexes up
to date without any additional effort. For more
information about how to determine if a volume contains
an index, refer to the Sherlock
technote.
- Expanded Language Support for indexing volumes has
been added. Earlier versions of Find by Content supported
a set of Western European languages, Japanese, and
Korean. In Mac OS 9, support has been added for all other
Roman-alphabet languages and for languages using the
Arabic, Hebrew, Greek, and Cyrillic alphabets. The
specific list of supported languages (and groups of
languages) is Afrikaans, Arabic, Farsi, Urdu,
Catalan, Croatian, Cryllic languages, Czech, Danish,
Dutch, English, Estonian, French, German, Greek, Hebrew,
Hungarian, Icelandic, Italian, Japanese, Korean, Latvian,
Lithuanian, Norwegian, Other (Roman alphabet), Polish,
Portuguese, Romanian, Slovak, Slovene, Spanish, Swedish,
Turkish, and Yiddish.
COMPATIBILITY NOTE
Once an index has been created with a particular
set of languages it is not possible to change the set
of languages used in the index. To change the set of
languages used in the index it will be necessary to
delete the index file and create a new one with a new
set of language settings.
|
|